//
//  NotifyingClass.m
//  TextApp
//
//  Created by panos on 16/11/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "NotifyingClass.h"

@implementation NotifyingClass

- (IBAction)displaySomeText:(id)sender
{
	WonderfulNumber *myWonderfulNumber = [[WonderfulNumber alloc] init];
	
	[myWonderfulNumber setStoredNumber:pi];
	
	float wonderfulValue = [myWonderfulNumber storedNumber]; //New init below
	//NSString *numberString = [myWonderfulNumber storedNumberAsString];

	
	[textView insertText:
	 [NSString stringWithFormat:
	  @"My Wonderful value is:  %.2f\n", wonderfulValue]];
	
	
	/*
	[textView insertText:
	 [NSString stringWithFormat:@"%@\n",numberString]];
	*/
	
	[myWonderfulNumber release];
}


- (float)generateValue:(float *)originalValue
{
	float value = [textField floatValue];
	*originalValue = value;
	return [MathUtilities circumferenceFromRadius:value];
}

@end
